<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="view/default/style/basic.css" />
<link type="text/css" rel="stylesheet" href="view/default/style/member.css" />
<script type="text/javascript" src="view/default/js/ajax.js"></script>
<script type="text/javascript" src="view/default/js/member.js"></script>
<title>在线商城会员中心</title>
</head>
<body>
{include file="default/public/header.html"}
<div id="sait">
    当前位置：<a href="./">首页</a> &gt; 订单详情
</div>

{include file="default/public/member_sidebar.html"}

<div id="main">
    <h2>订单详情</h2>
     <table cellspacing="1">
         <caption>订单状态</caption>
         <tr><th>订单号</th><th>订单状态</th><th>支付状态</th><th>配送状态</th></tr>
         <tr><td>{$oneOrder[0]->ordernum}</td><td>{$oneOrder[0]->order_state}</td><td>{$oneOrder[0]->order_pay}</td><td>{$oneOrder[0]->order_delivery}</td></tr>
     </table>
     
     <table cellspacing="1">
         <caption>商品状态</caption>
         <tr><th>编号</th><th>名称</th><th>属性</th><th>售价</th><th>数量</th><th>小计</th><th>评价</th></tr>
         {foreach from=$oneOrder[0]->goods key=key item=value}
         <tr><td>{$value.sn}</td><td><a href="?a=details&navid={$value.nav}&goodsid={$value.id}" target="_blank">{$value.name}</a></td><td>
            {foreach from=$value.attr key=k item=v}
                {$k}:
                {foreach from=$v key=k2 item=v2}
                {$v2};
                {/foreach} 
            {/foreach}
        </td><td>{$value.price_sale}</td><td>{$value.num}</td><td style="color:red;">{$value.total_small}元</td><td>{if $oneOrder[0]->order_delivery == '已发货'}<a href="?a=member&m=commend&goodsid={$value.id}&orderid={$oneOrder[0]->id}">参与评论</a>{else} --- {/if}</td></tr>
        {/foreach}
     </table>
     
     <table cellspacing="1">
         <caption>配送信息</caption>
         <tr><th>配送状态</th><th>物流方式</th><th>运单号</th></tr>
         <tr><td>{$oneOrder[0]->order_delivery}</td><td>{if $oneOrder[0]->order_delivery == '已发货'}<a href="{$oneOrder[0]->delivery_url}" target="_blank">{$oneOrder[0]->delivery_name}</a>{/if}</td><td>{$oneOrder[0]->delivery_number}</td></tr>
     </table>
     
     <table cellspacing="1">
         <caption>支付信息</caption>
         <tr><th>支付状态</th><th>支付方式</th><th>支付金额</th></tr>
         <tr><td>{$oneOrder[0]->order_pay}</td><td>{$oneOrder[0]->pay}</td><td>{$oneOrder[0]->price}</td></tr>
     </table>
     
     <table cellspacing="1">
         <caption>备注信息</caption>
         <tr><th>备注信息</th><th>缺货处理</th></tr>
         <tr><td>{$oneOrder[0]->text}</td><td>{$oneOrder[0]->ps}</td></tr>
     </table>
     {if $oneOrder[0]->order_pay == '已付款' || $oneOrder[0]->order_delivery == '已配货' || $oneOrder[0]->order_delivery == '已发货' || $oneOrder[0]->order_state == '已取消'} 
         {if $oneOrder[0]->refund == 1}
            <p style="color:red;text-align:center;margin:5px">此订单正在退款!</p>
         {else}
            {if $oneOrder[0]->refund == 2}
                <p style="color:red;text-align:center;margin:5px">此订单处于成功退款状态，可以选择<a href="?a=member&m=reOrder&id={$oneOrder[0]->id}">重新下单</a></p>
            {else}
                <p style="color:red;text-align:center;margin:5px">此订单已经被锁定，不能付款!</p>
            {/if}
         {/if}
     {else}   
     <p style="text-align:center;margin:5px;"><a href="?a=member&m=alipay&id={$oneOrder[0]->id}"><img src="view/default/images/fu.gif" /></a></p>
     {/if}
     <p style="text-align:center;"><a href="{$prev}">[返回]</a></p>
</div>
{include file='default/public/footer.html'}
</body>
</html>